<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title></title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

	</head>

	<body>
		<script type="text/javascript">
			function show(){
				var date=new Date();
				year=date.getFullYear();//获取年份
				month=date.getMonth()+1;
				day=date.getDate();
				hour=date.getHours();
				minute=date.getMinutes();
				document.getElementById("time").innerHTML="时间："+year+"."+month+"."+day+"&nbsp;&nbsp;"+hour+":"+minute;
			}
			setInterval(show,1000)
			$(function(){
			    var accordion = null;
				var menu = null;
			    var height = 0;
				//Layout
			    //uedLoader("Layout",function(){
					$("div#layout").uedLayout({leftWidth:180,space:0,heightDiff:0,onHeightChanged: f_heightChanged});
					height = $(".l-layout-center").height();
					$(".side-content").height(height-1);
					$(".sideframe").height(height);
			        $("#pageloading").hide();
					var frameTreeW = /\d+/.exec($("#frameTree").parents("div.l-layout-left").eq(0).width())-2+"px";
					$("#frameTree").css({width:frameTreeW});
				//})
				
				
				//Tab
				//uedLoader("Tab", function () {
			        $("div.tabslibrary").uedTab();	
					$("div.tabspage").uedTab({height: height,border:false});
			    //});
			    //Accordion
			    //uedLoader("Accordion",function(){
			        $('div[data-role="accordion"]').uedAccordion({ height: height-31});
					var frameTreeH = $("#frameTree").parent("div.l-accordion-content").height();
					$("#frameTree").css({height:frameTreeH});
			    //});
				$(window).resize(function(){
					var frameTreeH = $("#frameTree").parent("div.l-accordion-content").height();
					var frameTreeW = /\d+/.exec($("#frameTree").parents("div.l-layout-left").eq(0).width())-2+"px";
					$("#frameTree").css({width:frameTreeW,height:frameTreeH});
				});
				//Tree
				
				//});
			
			    function f_addTab(tabid, text, url)
			    {
			        tab.addTabItem({ tabid : tabid,text: text, url: url });
			    }
				function f_heightChanged(options)
			    {
			        if (tab)
			            tab.addHeight(options.diff);
			        if (accordion && options.middleHeight - 24 > 0)
			            accordion.setHeight(options.middleHeight - 24);
			    }
			
				//scrollpanel
			    //uedLoader("Scroll",function(){
				    $("div.menu-panel").UED_scroll({showNum:4,btnVisible:false});
					$("div.nav-panel").UED_scroll({btnVisible:false});
			    //})
			    //uedLoader("ScrollText",function(){
				    $("div.announcement").UED_scrollText({per:1});
			    //})
				
				//左侧树目录，当前目录项高亮
				$("li>.l-selected",".zTree").live("click",function(){
					var _this = $(this);
					_this.parents(".zTree").find(".l-body").removeClass("parent-selected");
					_this.closest(".zTree ul").parents(".zTree li").children(".l-body").addClass("parent-selected");
				})
				
				//当前地市高亮效果
				$(".nav-list>li",".navwrap").each(function(i,n){
					var _this = $(n);
					_this.live("click",function(){
						_this.addClass("curr").siblings().removeClass("curr");							
					})
				})
				//当前主菜单高亮效果
				$(".menu>ul>li",".menu-panel").each(function(i,n){
					var _this = $(n);
					_this.live("click",function(){
						_this.addClass("curr").siblings().removeClass("curr");							
					})
				})
				
				$(".right-panel .blue-link li").hover(function(){
					//$(this).find(".hoverContent").stop(false,true).fadeIn()
					},function(){
					$(this).find(".hoverContent").stop(false,true).fadeOut()
				})
				//$(".right-panel .blue-link li").mouseup(function(){
				//	$(this).find(".hoverContent").stop(false,true).fadeIn()
				//}).hover(function(){
				//	
				//},function(){
				//	$(this).find(".hoverContent").stop(false,true).fadeOut()
				//})
				
				$('.hoverContent').css({"width":parseInt($(window).width())-40,"_width":parseInt($(window).width())-40});
			})
		</script>
	</body>
</html>
